home *** CD-ROM | disk | FTP | other *** search
/ BBS Toolkit / BBS Toolkit.iso / programs / swift45i.zip / SWIFECHO.H < prev    next >
Text File  |  1992-03-15  |  2KB  |  84 lines

  1. /*
  2.  
  3.  * swifecho.h
  4.  
  5.  * structures and other typedefs for Swifecho.
  6.  * includes fidonet type 2 packet formats
  7.  * copyright 1989, 1990 by Dana Bell
  8.  
  9. */
  10.  
  11. #define PKTVER       2        /* Used for `ver' (below)                     */
  12. typedef unsigned      bit;
  13. typedef unsigned char byte;
  14. typedef unsigned int  word;
  15. typedef signed int sword;
  16. typedef long int dword;
  17. typedef unsigned char const * const  STRING;
  18.  
  19. typedef struct pktmsg
  20. {
  21.   word  ver;
  22.   sword orig_node;
  23.   sword dest_node;
  24.   sword orig_net;
  25.   sword dest_net;
  26.   word  attr;
  27.   word  cost;
  28. } PKTMSG;
  29.  
  30. typedef struct pkt
  31. {
  32.         int   orig_node;        /* originating node               */
  33.         int   dest_node;        /* destination node               */
  34.         int   year;             /* 0..99  when packet was created */
  35.         int   month;            /* 1..12  when packet was created */
  36.         int   day;              /* 1..31  when packet was created */
  37.         int   hour;             /* 0..23  when packet was created */
  38.         int   minute;           /* 0..59  when packet was created */
  39.         int   second;           /* 0..59  when packet was created */
  40.         int   rate;             /* destination's baud rate        */
  41.         int   ver;              /* packet version                 */
  42.         int   orig_net;         /* originating network number     */
  43.         int   dest_net;         /* destination network number     */
  44.         char  product;          /* product type                   */
  45.         char  x1;               /* filler (used by some systems)  */
  46.         byte password[8];       /* ONLY 6 CHARS ARE SIGNIFICANT!! */
  47.         word qm_orig_zone,
  48.               qm_dest_zone;
  49.         byte rsvd1[8];
  50.         word orig_zone,
  51.               dest_zone,
  52.               orig_point,
  53.               dest_point;
  54.         long pr_data;
  55. } PKT;
  56.  
  57. typedef struct msg
  58. {
  59.     unsigned char from[36];
  60.     unsigned char to[36];
  61.     unsigned char subject[72];
  62.     char  datetime[20];
  63.     int timesread;
  64.     int   dest_node;        /* destination node               */
  65.     int   orig_node;        /* originating node               */
  66.     int cost;
  67.     int   orig_net;         /* originating network number     */
  68.     int   dest_net;         /* destination network number     */
  69.     int   dest_zone;
  70.     int   orig_zone;
  71.     int   dest_point;
  72.     int   orig_point;
  73.     int   replyto;
  74.     int   attr;
  75.     int nextreply;
  76. } MSG;
  77.  
  78. typedef struct addresses {
  79.     int zone;
  80.     int net;
  81.     int node;
  82.     char netnode[20];
  83. } SEEN;
  84.